package com.aizhixin.test.my.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.aizhixin.test.common.core.PublicErrorCode;
import com.aizhixin.test.common.exception.CommonException;
import com.aizhixin.test.my.dao.PaiHangBiaoDAO;
import com.aizhixin.test.my.dto.GeRenPaiMinDTO;
import com.aizhixin.test.my.dto.RankingTableDTO;

@Service
@Transactional
public class paiHangBangService {
	/*
	 * 查排行榜，根据传过来的前x参数
	 */
	@Autowired
	private PaiHangBiaoDAO paiHangBiaoDao;
	public List<RankingTableDTO> selectPaiHangBang(Long a) {
		List<RankingTableDTO> listran = paiHangBiaoDao.rankingTableSelect(a);
			return listran;
	}
	
	public GeRenPaiMinDTO selectGeRenPaiHangBang(Long UserId) {
		return paiHangBiaoDao.selectGeRenPaiHang(UserId);
	}
}
